package com.wjhs.redispractice.antishake.controller;

import com.wjhs.redispractice.antishake.annotation.AntiShake;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AntiShakeController {

    @AntiShake(value = 2000)
    @GetMapping("/userInfo")
    public String someMethodThatNeedsToBeDebounced(String param) {
        System.out.println("wangjian");
        return "success";
    }

}
